package com.funsport.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("community_posts")
public class CommunityPost implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long authorId;
    private String title;
    private String content;
    private String postType;
    private String images;
    private String videos;
    private Long relatedEventId;
    private Long relatedClubId;
    private Integer sportTypeId;
    private String status;
    private Integer viewCount;
    private Integer likeCount;
    private Integer commentCount;
    private Integer shareCount;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}

